<?php
    $partnerId      = $this->partnerId;
    $auth = $this->auth; 
    $acl                = new My_Acl();
    $listAllow          = $acl->listAllowed($auth); 
    $listMenu           = array();
    foreach($listAllow as $row){
        if($row['moduleName'] == 'admin' && $row['actionName'] == 'index' && !in_array($row['controllerName'], $listMenu)){
            $listMenu[]     = $row['controllerName'];
        }
    }
    
?>
<ul class="menu">
    <?php
        foreach($listMenu as $menu){
            if($menu == "role"){
                echo '<li><a href="/admin/role/index/partnerId/'.$partnerId.'">Phân Quyền KPI</a></li>';
            }
            if($menu == "game"){
                echo '<li><a href="/admin/game/index/partnerId/'.$partnerId.'">Game KPI</a></li>';
            }
            if($menu == "user"){
                echo '<li><a href="/admin/user/index/partnerId/'.$partnerId.'">User KPI</a></li>';
            }
        }
    ?>
   
    
</ul>